<ul>
    {foreach $mainmenutree as $item}
        <li class="{if $item@first}first {/if}page_item">
            <a href="{$item.href}"{if $item@first} class="first"{/if}>{$item.label}</a>
            {include file='public/menu.tpl' mainmenutree=$item.sub}
        </li>
    {/foreach}
</ul>